package org.dashboard.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dashboard.bean.AdUser;

import java.util.List;

@Mapper
public interface AdUserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(AdUser record);

    int insertSelective(AdUser record);

    AdUser selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(AdUser record);

    int updateByPrimaryKey(AdUser record);


    int checkUserNameExist(@Param("userName")String userName,@Param("userId")Integer userId);

    AdUser selectByName(@Param("userName")String userName);

    List<AdUser> selectAdUsersSearched(@Param("criteria")String criteria);

}